package com.xuecheng.auth.feignclient;

import org.springframework.stereotype.Component;

/**
 * @author Tang
 * @version 1.0
 * @date 2024/1/11 16:04
 */
@Component
public class AuthFallbackFactory implements feign.hystrix.FallbackFactory<CheckCodeClient> {
    @Override
    public CheckCodeClient create(Throwable throwable) {
        return (key, code) -> false;
    }
}
